<%@ page import="com.jzj.dao.impl.All" %><%--
  Created by IntelliJ IDEA.
  User: jzj15
  Date: 2024/6/10
  Time: 17:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<style>
    table td{border: 1px solid black}
</style>
<body>
<table>

    <%
        All all = new All();
        request.setAttribute("a",all.xianshi());
    %>
    <a href="control.jsp">新建商品</a>
    <table style="border: 1px solid black;text-align: left">
        <tr>
            <td>id</td>
            <td>商品名</td>
            <td>进货价</td>
            <td>定价</td>
            <td>数量</td>
            <td>上架状态</td>
        </tr>
        <c:forEach var="b" items="${a}">
            <tr>
                <td>${b.id}</td>
                <td>${b.name}</td>
                <td>${b.in_price}</td>
                <td>${b.price}</td>
                <td>${b.count}</td>
                <td>${b.status}</td>
            </tr>
        </c:forEach>
    </table>




</body>
</html>
